*****************
* Preliminaries *
*****************

clear all
set more off
set matsize 11000
capture log close


* System details
* Analysis run on MacBook Pro with Apple M1 Pro, macOS 13.3.1(a)
* Stata/MP 18.0 for Mac (Apple Silicon)
* Revision 15 May 2023
* Copyright 1985-2023 StataCorp LLC


* Update to project directory
cd "."
global program_dir "./Programs/"
global data_dir "./Data/"
global results_dir "./Results/" 
                   

* Required packages
* ssc install binscatter
* ssc install estout 
* ssc install _gwtmean

 

* Main Paper Tables *
do "${program_dir}table1.do" 
do "${program_dir}table2.do" 
do "${program_dir}table3.do"  /* Also Tables A14, A15, and A16 */

* Main Paper Figures *
do ${program_dir}figure2.do 
do ${program_dir}figure3.do /* Also appendix table A17 */




* Appendix Figures
do "${program_dir}figureA1.do"
do "${program_dir}figureA2.do"
do "${program_dir}figureA3.do" /* Also Figures A6 and A7 */
do "${program_dir}figureA4.do"
do "${program_dir}figureA5.do" 

*do "${program_dir}figureA8.do" /* Figure A8 uses totally different data, contact authors for replication files */
do "${program_dir}figureA9.do" 
do "${program_dir}figureA10.do" 
do "${program_dir}figureA11_A14.do" 


* Appendix Tables 
do ${program_dir}tableA1.do // Also Table A5
do ${program_dir}tableA2.do
do ${program_dir}tableA3.do
do ${program_dir}tableA4.do 
do ${program_dir}tableA6.do 
do ${program_dir}tableA7.do 
do ${program_dir}tableA8.do 
do ${program_dir}tableA9.do  /* Note that multiple imputation results may change slightly if using an older version of Stata */
do ${program_dir}tableA10.do /* Note that multiple imputation results may change slightly if using an older version of Stata */
do ${program_dir}tableA11.do 
do ${program_dir}tableA12.do
do ${program_dir}tableA13.do
* Table A17 is created by figure3.do
do ${program_dir}tableA18.do
do ${program_dir}tableA19.do
do ${program_dir}tableA20.do
do ${program_dir}tableA21_A22.do
do ${program_dir}tableA23.do // Also 24 and 25
do ${program_dir}tableA26.do // Also 27 and 28
do ${program_dir}tableA29.do
do ${program_dir}tableA30.do 
do ${program_dir}tableA31.do 

exit 






 
 
 
 
 
 
 

exit	
